package second;

import java.util.Scanner;

public class Main2 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        
		StringBuilder stringBuilder = new StringBuilder();
		while (true) {
			int n = sc.nextInt();
			for (int i = 0; i < n; i++) {
				stringBuilder.append(i);
			}
			int x=sc.nextInt();
			int y=sc.nextInt();
		    System.out.printf(stringBuilder.toString().substring(x,y)+"\n");
		}
		
	}

}
